#ifndef BALL_H_
#define BALL_H_
#define _USE_MATH_DEFINES

#include "cv.h"
#include <math.h>

class Ball {

int xPos, yPos, speed, radius;
double angle;
int width, height;

public:
	Ball(int gWidth, int gHeight);
	void draw(IplImage *image);
	void updateBall(int x1, int y1, int x2, int y2, int height);
	void bounce(bool vertical);
	unsigned int getX();
	unsigned int getY();
	unsigned int getRadius();
};

#endif